import { request, config } from 'utils'

const { api } = config
const { taiList, gathered, queryTaiDetail } = api

export async function query (params) {
  return request({
    url: taiList,
    method: 'get',
    data: params,
  })
}

export async function queryDetail (params) {
  return request({
    url: queryTaiDetail,
    method: 'get',
    data: params,
  })
}

export async function gather (params) {
  return request({
    url: gathered,
    method: 'get',
    data: params,
  })
}
